import request from '@/utils/request'

export function findAllBrand() {
  //查找所有合作伙伴
  return request({
    url: '/super/CooperativeBrand/getCooperativeAll',
    method: 'get',
  })
}
  //修改状态
  export function updateState(cooperativeId,cooperativeState) {
    const data = {
      cooperativeId,
      cooperativeState
    }
    return request({
      url: '/super/CooperativeBrand/changeStatus',
      method: 'put',
      data:data
    })
  }
  //根据id删除合作伙伴
export function delCooperative(productIds) {
  return request({
    url: '/super/CooperativeBrand/remove/' + productIds,
    method: 'delete'
  })
}
//添加合作伙伴
export function addCooperative(data) {
  return request({
    url: '/super/CooperativeBrand',
    method: 'post',
    data:data
  })
}

//查询审核流程
export function getProduct(){
  return request({
    url:"/super/CooperativeBrand/getProduct",
    method: "get"
  })
}

//修改审核流程
export function updateProduct(data){
  return request({
    url:"/super/CooperativeBrand/updateProductFlow",
    method:"put",
    data:data
  })
}
